package com.zero.oopday05demo1;

public class EnumDemo {
    public static void main(String[] args) {
        Season[] seasons = Season.values();
        for (int i = 0; i < seasons.length; i++) {
            System.out.println(seasons[i].getSeasonName());
        }

        switch (Season.SPRING){
            case SPRING -> System.out.println("好困睡觉");
            case SUMMER -> System.out.println("还是好困睡觉");
            case AUTUMN -> System.out.println("再睡会把");
            case WINTER -> System.out.println("睡觉");
        }
    }
}
